<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>预选家长</a></li>
    </ul>
    <form class="well form-inline margin-top-20 row" method="post" action="{:url('PrimaryParent/index')}">
        <label for="" class="col-md-4 col-xs-6 form-group" style="margin-bottom: 15px;">
            用户名:
            <input class="form-control" type="text" name="user_login"  value="{:input('request.user_login')}"
                   placeholder="按用户名搜索">
        </label>



        <!--关键字：-->
        <!--<input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"-->
               <!--placeholder="用户名/昵称/邮箱">-->
        <label for="分类" class="col-md-8 col-xs-6 form-group" style="margin-bottom: 15px;">
            分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;类:
            <select class="form-control" name="user_status1" >
                <option value="0">全部</option>
                <if condition="isset($param.user_status1) && $param.user_status1 == 1">
                    <option value="1" selected>非在籍</option>
                    <else/>
                    <option value="1">非在籍</option>
                </if>
                <if condition="isset($param.user_status1) && $param.user_status1 == 2">
                    <option value="2" selected>在籍</option>
                    <else/>
                    <option value="2">在籍</option>
                </if>
            </select>
        </label>


        <label for="" class="col-md-4  col-xs-6 form-group">
            昵&nbsp;称：
            <input class="form-control" type="text" name="user_nickname"  value="{:input('request.user_nickname')}"
                   placeholder="按昵称搜索">
        </label>

        <label class="col-md-4 col-xs-6 form-group">
            预选课程:
            <select class="form-control" name="course_id" >
                <option value='0'>全部</option>
                    <volist name="course" id="vo">
                        <if condition="isset($param.course_id) && $param.course_id == $vo.id">
                            <option value="{$vo.id}" selected>{$vo.course_name}</option>
                            <else/>
                            <option value="{$vo.id}">{$vo.course_name}</option>
                        </if>
                    </volist>
            </select>
        </label>

        <div class="col-md-4 col-xs-6 form-group">
            <input type="submit" class="btn btn-primary" value="搜索"/>
            <a class="btn btn-danger" href="{:url('PrimaryParent/index')}">清空</a>
        </div>

    </form>
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>编号</th>
                <th>用户名</th>
                <th>昵称</th>
                <th>头像</th>
                <th>预选课程</th>
                <th>校区</th>
                <th>邮箱</th>
                <th>手机</th>
                <th>联系地址</th>
                <th>分类</th>
                <th>预约时间</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));
            </php>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo['user_login']?$vo['user_login']:($vo['mobile']?$vo['mobile']:lang('THIRD_PARTY_USER'))}
                    </td>
                    <td>{$vo['user_nickname']}</td>
                    <td><img width="25" height="25" src="{:url('user/public/avatar',array('id'=>$vo['id']))}"/></td>
                    <td>{$vo.course_name}</td>
                    <td>{$vo.sname}</td>
                    <td>{$vo.user_email}</td>
                    <td>{$vo.mobile}</td>
                    <td>{$vo.address}</td>
                    <td>
                        <if condition="$vo.user_status1 eq 2">
                            <span class="label label-success">在籍</span>
                            <else/>
                            <span class="label label-danger">非在籍</span>
                        </if>
                    </td>
                    <td>{:date('Y-m-d H:i:s',$vo['last_login_time'])}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>